home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 April / Gamestar_61_2004-04_dvdb.iso / DVDStar / Editace / hltp.exe / {app} / Source Code / VirtualDub / sylia / StringHeap.h < prev    next >
C/C++ Source or Header  |  2003-10-01  |  454b  |  30 lines

  1. #ifndef f_STRINGHEAP_H
  2. #define f_STRINGHEAP_H
  3.  
  4. class CStringHeap {
  5. private:
  6.     struct StringDescriptor {
  7.         char **handle;
  8.         long len;
  9.     };
  10.  
  11.     StringDescriptor *lpHeap;
  12.     char **lpHandleTable;
  13.     long lHandles;
  14.     long lQuads;
  15.     long lQuadsFree;
  16.  
  17.     bool _Allocate(char **, int, bool);
  18.  
  19. public:
  20.     CStringHeap(long, long);
  21.     ~CStringHeap();
  22.  
  23.     void Clear();
  24.     void Compact();
  25.     char **Allocate(int, bool);
  26.     void Free(char **, bool);
  27. };
  28.  
  29. #endif
  30.